package com.liang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 李昂
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CBlog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 博客id
     */
    @TableId(value = "bid", type = IdType.AUTO)
    private int bid;

    /**
     * 发布人id
     */
    private String id;

    /**
     * 博客标题
     */
    private String title;

    /**
     * 博客内容
     */
    private String container;

    /**
     * 博客类别
     */
    private String type;

    /**
     * 发布时间
     */
    private String publicTime;

    /**
     * 点赞
     */
    private Integer praise;

    /**
     * 查看总人数
     */
    private Integer lookTotal;

    private Integer commentTotal;

    @TableField(exist = false)
    private Date datetime;

    @TableField(exist = false)
    private CUserDetail userDetail;

}
